import pytest
import os
if __name__ == '__main__':
    # pytest.main()
    pytest.main(['-vs','test_calc.py'])
    # pytest.main(['-vs',r'D:\HongRuan-Work\Python\PythonProject\0718'])
    # pytest.main(['-vs','test_calc.py::TestCalc::test_add02'])
    # pytest.main(['-vs','test_calc.py',./report/html/report.html])d
    pytest.main(['-vs', 'test_calc.py', '--alluredir=./json_report'])  # 生成json格式的测试报告
    os.system('allure generate ./json_report -o ./html_report')








